Skip to content

fix(ci): require the patcher comparison for every install plan; refuse vacuous runs - #126

Open
bodencrouch wants to merge 1 commit into
mainfrom
fix/comparison-every-install-plan
Open

bodencrouch wants to merge 1 commit into
mainfrom
fix/comparison-every-install-plan

Conversation

@bodencrouch

Copy link
Copy Markdown
Owner

Two fake-green paths in the patcher-lane comparison, found in the workflow audit:

  1. Single-route dispatch skipped the comparison. mode=cli (or gui) still ran all three patcher backends, but the comparison job ran and was required only when both routes were planned (fullrun.yml, comparison if and REQUIRE_COMPARISON). The run passed with cross_lane_parity: unverified, and no lane was ever held against the packaged patcher.
  2. Vacuous comparison. With no selected component running a Patcher operation, judge() compared only the preparation and final trees and passed. The mod-packaged lane could go green without running a single packaged installer.

Change

  • fullrun.yml: the comparison runs and is required for every install/full plan and receives the planned routes.
  • fullrun-compare.yml → patcher_comparison_artifacts.py --modes → compare(modes=...): three receipts per installed route, not a hard-coded six. The CLI/GUI pair of the packaged lane is compared only when both routes ran.
  • judge() refuses an empty patcher-operation set as vacuous.
  • COMPATIBILITY.md updated.

Verification

  • New tests:
    • single-route pairs and blame
    • vacuous refusal
    • compare() cell count per route set
    • a workflow-contract test that the comparison isn't gated on both modes
  • Each test fails with the fix set aside (workflow: 1 failure; comparison: 1 failure, 2 errors).
  • Contract suite 1337 OK; actionlint clean.
  • End-to-end: this PR's own full run exercises the comparison over real lanes (6 cells).

Generated by Claude Code

…e vacuous runs

Two ways the patcher-lane comparison could pass without comparing anything:
- A single-route dispatch (mode=cli or gui) still ran all three backends,
  but the comparison job ran and was required only when both routes were
  planned, so the run passed with cross_lane_parity "unverified".
- With no selected component running a Patcher operation, the comparison
  diffed only preparation and final trees and passed, so the mod-packaged
  lane could go green without ever running a packaged installer.

The comparison now runs and is required for every install/full plan, for
one route (three lanes) or both (six lanes); compare() and the artifacts
wrapper take the planned routes instead of hard-coding six cells. judge()
refuses an empty patcher-operation set as vacuous.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QDKiomK3BZE8fScCAGRfuq

Copy link
Copy Markdown
Owner Author

The install (k1, gui, …) lanes fail at the baseline step with "No verified k1 baseline is available". The baseline verifies and then hits an OSError. This is the cross-filesystem (EXDEV) rename in tools/modsync-ci/fullrun_baseline.py that #122 fixes. This branch was cut from main before #122, and its diff doesn't touch the baseline code.

Once #122 merges, I'll update this branch onto main so the lanes can reach the patcher comparison this PR adds. #122 is waiting on #127.

🤖 Generated with Claude Code

https://claude.ai/code/session_01QDKiomK3BZE8fScCAGRfuq


Generated by Claude Code

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants